<%@ page contentType="text/html;charset=UTF-8" %>
<nav id="sidebar" class="sidebar nav-collapse collapse">
    <ul id="side-nav" class="side-nav">
        <c:set var="menuList" value="${fns:getMenuList()}"/>
        <c:forEach items="${menuList}" var="menu" varStatus="idxStatus">
            <c:if test="${menu.parent.id eq '1'&&menu.isShow eq '1'&&menu.id ne '28'}">
                <li class="panel">
                    <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#side-nav" href="#nav_${menu.id}">
                        <i class="fa ${menu.icon}"></i><span class="name">${menu.name}</span></a>
                    <ul id="nav_${menu.id}" class="panel-collapse collapse in">
                        <c:forEach items="${menuList}" var="menu2">
                            <c:if test="${menu2.parent.id eq menu.id&&menu2.isShow eq '1'}">
                                <li class="">
                                    <a href="${fn:indexOf(menu2.href, '://') eq -1 ? ctx : ''}${menu2.href}" data-id="${menu2.id}" target="mainFrame">${menu2.name}</a>
                                </li>
                            </c:if>
                        </c:forEach>
                    </ul>
                </li>
            </c:if>
        </c:forEach>
    </ul>
    <a href="#" id="pjax_proxy" style="display: none"></a>
</nav>
